<?php
    $items = $page['items'];
?>

<div class="container">
    <div id="content">
        <?php foreach ($items as $item){?>
        <article>
            <h3><?=$item['title']?></h3>
            <div class="blog-index">
                <?=$item['content'];?>
            </div>
            <a class="btn btn-primary"  href="/blog/view?id=<?=$item['id'];?>">查看全文</a>
        </article>
        <?php }?>
    </div>
    <?=Functions::genHtmlPages($page);?>
</div>